﻿using System;
using System.Web;
using System.Web.Security;

namespace HoverTreeMobile.HvtAdmin.AdminMuban
{
    public partial class PanelMuban : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Request.IsAuthenticated)
                FormsAuthentication.RedirectToLoginPage();
            // Response.Redirect("/hvtadmin/login.aspx");
            else
            {
                ltlUsername.Text = HttpContext.Current.User.Identity.Name;
                if (HttpContext.Current.User.Identity.Name.ToLower() != "hovertree")
                    panelHovertree.Visible = false;
            }
        }

        
    }
}